<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en" style="height:100%">
<head>
<meta charset="UTF-8">
<title>比康医箱</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="../static/css/dialog.css">
<link rel="stylesheet" type="text/css" href="../static/css/table-list.css">
<link rel="stylesheet" href="../static/css/guahao.css">
<link rel="stylesheet" type="text/css" href="../static/css/loading.css">
</head>
<body>
	<div id="loading" style="position: absolute;top: 40%;left: 50%;">
		<div class="loader-demo">
			<div class="ball-spin-fade-loader">
				<div></div>
				<div></div>
				<div></div>
				<div></div>
				<div></div>
				<div></div>
				<div></div>
				<div></div>
			</div>
		</div>
	</div>
	<script language=javascript>
	function closeDiv()
	{
	document.getElementById('loading').style.display='none';
	}
	</script>
	<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon">
	<link href="../static/css/bootstrap.min.css" rel="stylesheet" media="screen" />
	<link rel="stylesheet" href="../static/css/font-awesome.min.css" />
	<link rel="stylesheet" href="../static/css/app.css" id="maincss">
	<link rel="stylesheet" type="text/css" href="../static/css/button.css">
	<link rel="stylesheet" type="text/css" href="../static/css/dialog.css">
	<link rel="stylesheet" type="text/css" href="../static/css/pagination.css">
	<link rel="stylesheet" type="text/css" href="../static/css/common-style.css">
	<script type="text/javascript">
	var path = '';		
</script>
	<script src="../static/js/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="../static/js/jquery.validator.min.js"></script>
	<script type="text/javascript" src="../static/js/zh-CN.js"></script>
	<script src="../static/js/jquery.cookie.js"></script>
	<script src="../static/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../static/js/jquery.storageapi.js"></script>
	<script type="text/javascript" src="../static/js/app.js"></script>
	<script src="../static/js/common.js"></script>
	<script src="../static/js/common-getInfo.js"></script>
	<script src="../static/js/common-validate.js"></script>
	<script src="../static/js/common-util.js"></script>
	<script src="../static/js/common-dataBind.js"></script>
	<script src="../static/js/jquery.PrintArea.js"></script>
	<script language="javascript" type="text/javascript">
/**获取是否在客户端标志
 * sessionStorage 根据打开浏览器时获取参数*/
function getKeHudbz() {
	var keHudURL =$('#mainIframe').context.referrer;
	function getValue(url, name) {
	    var reg = new RegExp('(\\?|&)' + name + '=([^&?]*)', 'i');
	    var arr = url.match(reg);
	    if (arr) {
	        return arr[2];
	    }
	    return null;
	}
	var where = getValue(keHudURL, 'where');
	if (where != null) {
		if(where == "Q8gmoUGvFHpoSA43EVyVkg==") {
			sessionStorage.setItem('isKeHud', true);
		} else {
			sessionStorage.setItem('isKeHud', false);
		}
	} 
	if (sessionStorage.getItem('isKeHud') == 'true'){
		return true;
	} else if (sessionStorage.getItem('isKeHud') == 'false') {
		return false;;
	}
}
// 客户端标志
var isKeHud = getKeHudbz();
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
var s;
(s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua
		.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua
		.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] : (s = ua
		.match(/opera.([\d.]+)/)) ? Sys.opera = s[1] : (s = ua
		.match(/version\/([\d.]+).*safari/)) ? Sys.safari = s[1] : 0;
		
//以下进行测试
/* if (Sys.chrome) {
	//document.write('Chrome: ' + Sys.chrome.substr(0,2));
	//目前Chrome浏览器需要判断支持情况
	var banBenHao = Sys.chrome.substr(0, 2);
	if (parseInt(banBenHao) >= 40) {
		//版本号大于53,跳转到登录页
	} else {
		//版本号小于53,跳转到支持页
		window.location.href="/jump/toZhichi"; 
	}
}
if(!Sys.safari&&!Sys.chrome){
	//其他浏览器，都不支持
	window.location.href="/jump/toZhichi"; 
} */
</script>
	<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
	<input id="yb-init" style="display: none" value="" />
</body>
</html>

<link rel="stylesheet" type="text/css" href="../static/css/header.css">
<link rel="stylesheet" type="text/css" href="../static/css/input.css">
<div class="g-container clearfix" style="margin-bottom:60px">
	<input id="isYiBao" style="display: none" value="false" />
	<header class="header clearfix">
	<div class="h-container">
		<div class="h-hleft">
			<img src="../static/image/bk_logox.png" alt="logo" class="h-logo" id="logo">
			<div class="h-clinic">岳阳县公田镇老街诊所</div>
		</div>
		<div class="h-help-ect">
			<div id="bangz" class="h-help-title">帮助</div>
			<div class="h-help-img" id="tongzhi">
				<div class="h-help-fi">
					<i class="fa fa-volume-down fa-lg h-helpimg-i" aria-hidden="true"></i>
				</div>
				<div class="h-help-info">
					<em></em>
					<div>
						<h4 class="h-help-info-h4">通知栏</h4>
						<div class="g-hinfo-lists" id="divTongzhi"></div>
						<div class="g-hinfo-more">
							<a href="/jump/toTongzhi">查看全部</a>
						</div>
					</div>
				</div>
			</div>
			<div class="h-doctor my-message" id="m-message">
				<span id="helloworld">1767 .</span> <i
					class="fa fa-caret-right fa-lg" aria-hidden="true"></i>
				<ul class="pull-down-list">
					<li><a href="/jump/toZhanghaoxx">帐户信息</a>
					</li>
					<li><a href="/jump/toYonghuxzzs">我的诊所</a>
					</li>
					<li><a href="tuichu.html">退出</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="clearfix g-nav">
			<div class="nav-left">
				<div class="n-weizhenliao nav-l-normal" id="shouy">首页</div>
				<div class="n-weizhenliao nav-l-normal" id="guahao">挂号</div>
				<div class="n-normal-clinic nav-l-normal" id="changguimz">常规门诊</div>
				<div class="n-medicine nav-l-normal" id="shouyao">售药</div>
				<div class="n-charge nav-l-normal" id="shoufei">收费</div>
				<div class="n-repayment nav-l-normal" id="huankuan">还款</div>
				<div class="n-repayment nav-l-normal" id="fayao">发药</div>
			</div>
			<div class="nav-right">
				<div class="nav-r-normal n-statistics" id="changygn">
					更多功能<i class="fa fa-caret-right fa-lg" aria-hidden="true"></i>
					<ul class="pull-down-list">
						<li><div class="n-statistics" id="chaxuntj">查询/统计</div></li>
						<li><div style="display: none" class="n-clinic"
								id="daijianwp">代煎/外配</div>
						</li>
						<li><div class="n-patient" id="huanzhe">患者</div>
						</li>
						<li><div class="n-inventory" id="head-kucun">库存</div>
						</li>
						<li><div class="n-clinic" id="zhensuo">诊所</div>
						</li>
						<li style="display: none" id="yibaoli" class="a-nryibao"><div
								class="n-yibao" id="yibao">医保</div>
						</li>
						<li><div class="n-yibao" id="xitong-shezhi">系统设置</div></li>
					</ul>
				</div>
			</div>
		</div>
	</div>
	</header>
	<div class="modal" style="top: 20%;" id="tanceng-denglu">
		<div class="modal-dialog  m-postion" style="width:500px; !important">
			<div class="modal-content .d-content"
				style="border-top: 2px solid #00b671;border-radius: 0;">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
					<h4 class="modal-title" style="font-size:16px;text-align: center;">您的登录信息已过期，请重新登录</h4>
				</div>
				<div class="modal-body text-center" style="margin:15px;">
					账号：<input type="text" id="exshoujihm"
						style="height: 30px;padding-left:10px;margin-bottom: 20px;border: 1px solid #ccc;"
						name="username" value="17707303991" /><br> 密码：<input
						type="password" id="exmima"
						style="height: 30px;padding-left:10px;margin-bottom: 10px;border: 1px solid #ccc;"
						name="password" />
				</div>
				<div class="modal-footer m-modal-footer"
					style="font-size:16px;text-align: center;">
					<button type="button" class="btn button"
						style="background:#00b671;color:#fff;" id="denglu">登录</button>
					<div type="button" class="btn button1"
						style="background:#fff;border:1px solid #ccc;" id="quxiao"
						data-dismiss="modal">取消</div>
				</div>
			</div>
		</div>
	</div>
	<div class="modal fade" id="tanceng-lodop" tabindex="-1" role="dialog"
		aria-labelledby="qyjy" aria-hidden="true" style="z-index: 15050">
		<div class="modal-dialog modal-sm m-postion">
			<div class="modal-content d-content" style="width:375px;top:150px;">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal">
						<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
					</button>
				</div>
				<div class="modal-body" style="text-align: center;">
					<span class="modal-title">打印控件未安装(或未启动)!是否立即下载</span>
					<p style="color:#ff0000;font-size:12px;padding:15px 0 0 0;">注：安装后请刷新页面或重新进入。</p>
				</div>
				<div class="modal-footer text-center m-modal-footer">
					<a class="btn confirm" id="xiazai"
						href='/scripts/CLodop_Setup_for_Win32NT.exe' target='_self'
						style="color:#fff;text-decoration:none;">下载</a>
					<button type="button" class="btn canceal new-btn"
						data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>
	<div class="modal fade" id="shangpinjqcz" style="z-index:15050"
		tabindex="-1" role="dialog" aria-labelledby="" aria-hidden="true">
		<div class="modal-dialog modal-lg m-postion">
			<div class="modal-content ybtc-content">
				<div class="modal-header">
					<span>精确查找</span>
				</div>
				<div class="modal-body" id="shangpjctj">
					<div class="modal-search clearfix">
						<div class="modal-seh-options">
							<div class="modal-seh-name">
								<label>名称：</label> <input type="text" placeholder="请输入商品名称"
									id="shangpinmc">
							</div>
							<div class="modal-seh-company">
								<label>生产厂家：</label> <input type="text" placeholder="请输入生产厂家"
									id="shengchancj">
							</div>
						</div>
						<div class="modal-seh-operation clearfix">
							<button class="modal-seh-button btuuon btn" id="search">查询</button>
						</div>
						<div class="modal-seh-laiyuan">
							<label>来源：</label>
							<div class="btn-jingquecz-check" style="margin: 0;">
								<span class="check check1" id="checkBenzs"></span>本诊所
							</div>
							<div class="btn-jingquecz-check">
								<span class="check check1" id="checkPingtk"></span>平台库
							</div>
						</div>
						<div class="modal-seh-leixing">
							<label>类型：</label>
							<div class="btn-jingquecz-check chazcy">
								<span class="check ypleixing check1" id="checkYinpian" value="1"></span>饮片
							</div>
							<div class="btn-jingquecz-check">
								<span class="check  ypleixing check1" id="checkZhongcy"
									value="2"></span>中成药
							</div>
							<div class="btn-jingquecz-check">
								<span class="check  ypleixing check1" id="checkHuaxzy" value="3"></span>化学制药
							</div>
							<div class="btn-jingquecz-check">
								<span class="check  ypleixing check1" id="checkShengwzy"
									value="4"></span>生物制药
							</div>
							<div class="btn-jingquecz-check">
								<span class="check  ypleixing check1" id="checkQita" value="5"></span>其他
							</div>
							<div class="btn-jingquecz-check chazhc">
								<span class="check check1" id="checkHaocai" value="0"></span>耗材
							</div>
						</div>
					</div>
					<div class="table-list">
						<div class="table-title s-title" style="border-bottom:0">
							<div id="jingquecz_img"></div>
							<table width="100%" cellpadding="0" border="0" cellspacing="0"
								id="jingqcz_table" style="table-layout: fixed;">
								<thead>
									<tr>
										<th width="20%">商品名称</th>
										<th width="25%">包装规格</th>
										<th width="30%">生产厂家</th>
									</tr>
								</thead>
								<tbody id="jingqcz_tbody"></tbody>
							</table>
							<div id="pagination-jingqczsp"></div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<input id="yb-chongxinqd" type="hidden" value="" />
<input id="yb-yewuzqh" type="hidden" value="" />
<input id="yb-zongedzcs" type="hidden" value="" />
<input id="huanzhexx" type="hidden" value="" />
<input id="yb-duka" type="hidden" value="" />
<input id="yb-initby" type="hidden" value="" />
<input type="hidden" value="" id="yb-jiuzhenxxmx">
<div id="yb_yuangongid" style="display:none;">335</div>
<script src="../static/js/header.js"></script>
<script type="text/javascript">
    var isYiBao = false
    var path = '';
    var jinrusj = 'null';
    var rukou = 'null';
    var zhensuomc = '岳阳县公田镇老街诊所';
    // 医保显示控制
    if (isKeHud == true && isYiBao == true) {
		$('.a-btnyibao').css('display','inline-block');
		$('.a-nryibao').css('display','block');
    } else {
		$('.a-btnyibao').css('display','none');
		$('.a-nryibao').css('display','none');
    }
    if(jinrusj && jinrusj!='null') {
    	notifyInfo("欢迎进入"+"&nbsp;"+"&nbsp;"+zhensuomc,jinrusj);
    }
    if(rukou == '0' ) {
    	if(jinrusj && jinrusj!='null'&& (new Date().getTime() - Number(jinrusj)) < 3000) {
    		//$('#tanceng-shezhiyd').modal('show');
        }else{
        	$('#tanceng-shezhiyd').modal('hide');
        }
    }
    getPath(path);

    $("#guahao").click(function(){
    	window.location.href='guahao.jsp';
    	return false;
    });
    
    $("#head-kucun").click(function(){
    	window.location.href= path+'toKuncun.html';
    	return false;
    });

    //通知
    $("#imgTongzhi").click(function(){
    	window.location.href= path+'toTongzhi.jsp';
    	return false;
    });
    
    $("#zhensuo").click(function(){
    	window.location.href='toZhensuo.html';
    	return false;
    });
    $("#yibao").click(function(){
    	window.location.href= path+ '/jump/toYibao';
    	return false;
    });
  	//跳转到首页
    $("#shouy").click(function(){
	window.location.href='MyHtml.html';
    });
  	
    function toIndex() {
    	window.location.href= path+'/jump/toIndex?mingcheng='+mingcheng;
    	return false;
    }
    
    $("#shoufei").click(function(){
    	window.location.href= path+ 'toShoufei.jsp';
    	return false;
    });

    $("#huankuan").click(function(){
    	window.location.href='toHuankuan.html';
    	return false;
    });

    $("#chaxuntj").click(function(){
    	window.location.href= path+'searchStatistics.html';
    	return false;
    });
    $("#bangz").click(function(){
    	window.location.href="bangzhu.html";
    	return false;
    });
    $("#fayao").click(function(){
    	window.location.href="fayao.jsp";
    	return false;
    });
	$("#shouyao").click(function(){
	   	window.location.href='toShouyao.html';
	   	return false;
	   });
	$("#weizl").click(function(){
	   	window.location.href=  path+'/jump/toWeizl';
	   	return false;
	   });
	
	
   $("#changguimz").click(function(){
   	window.location.href=  path+'toChangguimz.html';
   	return false;
   });	
   $("#daijianwp").click(function(){
   	window.location.href= (path+"/views/daijianwp/daijianwpcf.jsp");
   	return false;
   });	
  $("#huanzhe").click(function(){
	window.location.href='toHuanzhe.html';
	return false;
	});
  $("#xitong-shezhi").click(function(){
	window.location.href= (path+"xitong-shezhi.jsp");
	return false;
	});
// 代煎外配权限
function getDaiJianwpqx() {
	var daijianwpqx;
	$.ajax({
		type: "get",
		url: path + "/yaoshifw/getDaiJianwpqx",
		async: false,
		success: function(res) {
		daijianwpqx= res;
		}
	});
	return daijianwpqx;
}
var daijianwpqx = getDaiJianwpqx();
if (daijianwpqx == true) {
	$('#daijianwp').css('display', 'block');
}
</script>

<div class="main-scroll ">
	<div class="guahao-box clearfix">
		<form class="form-inline  clearfix" role="form" method="post"
			id="formSave" onsubmit="return false;">
			<div class="left-box clearfix">
				<div class="left-title clearfix">
					<span class="guahao-title">新增挂号</span>
					<div id="xinzeng" class="btn button button1" style="display:none;">新增</div>
					<div id="chongzhi" class="btn button button1">重置</div>
				</div>
				<div class="left-content">
					<ul>
						<li class="duilieli"><span id="dangqianpdrs" class="duilie">当前排队人数：</span><span
							id="paiduirs" class="duilieshu"></span></li>
						<li class="haomali"><span id="haoma"
							class="xiangmu xiangmuhm">号码：</span><span id="haoma1"
							class="haoma"></span></li>
						<li style="position: relative;"><span class="xiangmu"><span
								class="bitbz">*</span>姓名：</span> <input id="xingmingOrshouji"
							type="text" class="input-row dropdown-toggle" name="xingming"
							data-target="#msg_holder" placeholder="输入姓名或手机号检索" />
							<ul id="huanzhexiala" class="xingmingul dropdown-menu"
								role="menu" style="width:70%;left:92px;border: none;">
							</ul></li>
						<li><span class="xiangmu"><span class="bitbz">*</span>手机：</span>
							<input id="shoujihm" type="text" name="shoujihm"
							class="input-row" data-target="#msg_holder" placeholder="输入手机号码" />
						</li>
						<li class="mi-radio"><span class="xiangmu">性别：</span><input
							type="radio" id="nan" name="xingbie" value="1" /> <label
							name="chinese" id="man"
							class='radio-label cgbj-input xuanzekuang' for="nan">&nbsp;&nbsp;男</label>
							<input type="radio" id="nv" name="xingbie" value="2" /> <label
							name="europe" id="woman" class='radio-label xuanzekuang' for="nv"
							style="margin-left:40px;">&nbsp;&nbsp;女</label></li>
						<li><span class="xiangmu">年龄：</span> <input id="age"
							type="text" class="input-row input-row-duan" />
							<div class="btn-group dropdown-search-li"
								style="width:24%;border:#aaa 1px solid;background-position: 81%;">
								<input type="hidden" id="hinianlingdw" name="nianlingdw">
								<div class="btn dropdown-toggle" data-toggle="dropdown"
									style="text-align: center;width:100%;" tabindex="0"
									id="nianlingdw">岁</div>
								<ul class="dropdown-menu keshixlul" id="nianlingxl" role="menu"
									style="width:100%;min-width:1px;">
									<li>岁</li>
									<li>月</li>
								</ul>
							</div></li>
						<li><span class="xiangmu"><span class="bitbz">*</span>科室：</span>
							<div class="btn-group dropdown-search-li"
								style="width:70%;border:#aaa 1px solid;">
								<input type="hidden" id="keshiid" name="keshi">
								<div class="btn dropdown-toggle" data-toggle="dropdown"
									style="text-align: center;width:100%;height:34px;" tabindex="0"
									id="keshidiv"></div>
								<ul class="dropdown-menu keshiul" id="keshimc" role="menu"
									style="width:100%;min-width:1px;">
								</ul>
							</div></li>
						<li><span class="xiangmu">医生：</span>
							<div class="btn-group dropdown-search-li"
								style="width:70%;border:#aaa 1px solid;">
								<input type="hidden" id="ysxm" value>
								<div class="btn dropdown-toggle" data-toggle="dropdown"
									style="text-align: center;width:100%;height:34px;" tabindex="0"
									id="yishengxm">不指定</div>
								<ul class="dropdown-menu keshixlul" id="yishengul" role="menu"
									style="width:100%;min-width:1px;">
								</ul>
							</div></li>
						<li class="mi-radio"><span class="xiangmu">挂号类型：</span> <input
							type="radio" id="" name="xingbie" value="1" /> <label
							name="chinese" id="putonghao"
							class='radio-label cgbj-input xuanzekuang guahaolx on' for="nan">&nbsp;&nbsp;普通号</label>
							<input type="radio" id="" name="xingbie" value="2" /> <label
							name="europe" id="zhuanjiahao"
							class='radio-label xuanzekuang guahaolx' for="nv"
							style="margin-left:40px;">&nbsp;&nbsp;专家号</label>
							<div id="zhezhaogh"></div></li>
						<li><span class="xiangmu">应收：</span><span id="yingshouje"
							class="bitbz">0.00元</span></li>
						<li class="zhuangtai"><span class="xiangmu">状态：</span>
							<div class="btn-group dropdown-search-li"
								style="width:70%;border:#aaa 1px solid;">
								<input type="hidden" id="hinianlingdw" name="keshi">
								<div class="btn dropdown-toggle" data-toggle="dropdown"
									style="text-align: center;width:100%;" tabindex="0"
									id="jiezhenzt">接诊中</div>
								<ul class="dropdown-menu keshiul" id="jiezztul" role="menu"
									style="width:100%;min-width:1px;">
									<li>待接诊</li>
								</ul>
							</div>
							<div id="zhezhaoxb"></div></li>
						<li class="zhuangtai no-zhuangtai"><span class="xiangmu">状态：</span>
							<span id="guahao-zt"></span></li>
					</ul>
				</div>
				<div class="left-footer xinzeng clearfix" id="guahaosfAndDyxp">
					<div id="dayingxp" class="btn-check">
						<span class="check check1" id="checkBoxDyxp"></span>打印小票
					</div>
					<div id="dayingfp" class="btn-check" style="margin-left:0;">
						<span class="check check1" id="checkBoxDyfp"></span>打印发票
					</div>
					<div class="btn button" style="float:right;margin-right:15px;"
						id="guahaosf">挂号收费</div>
				</div>
				<div id="daijiezxq" class="left-footer yiguohao clearfix">
					<div id="tuihao" class="btn button1"
						style="float:right;min-width: 60px;width:60px;margin-right:10px;">退号</div>
					<div id="printing" class="btn button1"
						style="float:right;color:#00b7ee;border-color:#00b7ee;width:60px;">打印小票</div>
					<div id="fp-dayingh" class="btn button1"
						style="float:right;color:#00b7ee;border-color:#00b7ee;width:60px;">打印发票</div>
					<div id="save" class="btn button" style="float:right;width:60px;">保存</div>
				</div>
				<div id="zhuangtaigq" class="left-footer yiguoqi clearfix">
					<div class="btn button" style="float:right;margin-right:15px;">退号</div>
					<div class="btn button1"
						style="float:right;margin-right:15px;color:#00b7ee;border-color:#00b7ee;">打印</div>
				</div>
			</div>
			<div class="right-box clearfix">
				<div class="right-title-box clearfix">
					<ul class="clearfix">
						<li><span>姓名/手机号码：</span> <input id="xingmingsj" type="text"
							class="input-row-right" placeholder="输入姓名或手机号码" /></li>
						<li style="width:240px;"><span>挂号医生：</span> <input
							id="ghyishengxm" type="text" class="input-row-right"
							placeholder="输入挂号医生" /></li>
						<li style="width:225px;"><span>状态：</span>
							<div class="btn-group dropdown-search-li"
								style="width:70%;border:#aaa 1px solid;">
								<input type="hidden" id="zhuangtai" name="keshi" value="1">
								<div class="btn dropdown-toggle" data-toggle="dropdown"
									style="text-align: center;width:100%;" tabindex="0"
									id="zhuangtaidiv">待接诊</div>
								<ul class="dropdown-menu zhuangtaiul" id="ghzhuangtaiul"
									role="menu" style="width:100%;min-width:1px;">
									<li>全部</li>
									<li value=1>待接诊</li>
									<li value=2>接诊中</li>
									<li value=3>已接诊</li>
									<li value=4>已过号</li>
									<li value=5>已过期</li>
									<li value=6>已退号</li>
								</ul>
							</div></li>
						<li style="width:225px;">
							<div class="btn button1" style="float:right;margin-right:15px;"
								id="guahao-reset">重置</div>
							<div class="btn button" style="float:right;margin-right:15px;"
								id="guahao-search">查询</div></li>
					</ul>
				</div>
				<div class="wushuju"></div>
				<div class="table-list" id="">
					<table width="100%" cellpadding="0" border="0" cellspacing="0"
						id="guahaoxxtbid">
						<thead>
							<tr>
								<th width="5%" filed="number">号码</th>
								<th width="10%" filed="huanzhexm">姓名</th>
								<th width="13%" filed="huanzhesjhm">手机号码</th>
								<th width="8%" filed="xingbie">性别</th>
								<th width="8%" filed="nianling">年龄</th>
								<th width="10%" filed="keshimc">科室</th>
								<th width="10%" filed="guahaoysxm">挂号医生</th>
								<th width="15%" filed="guahaosj">挂号时间</th>
								<th width="10%" filed="zhuangtai">状态</th>
								<th width="10%" hidddenFiled="id" operation1="详情">操作</th>
							</tr>
						</thead>
						<tbody id="guahaoTbody">
						</tbody>
					</table>
					<div id="pagination-fenyguahaoxx"></div>

					<!-- 挂号发票 -->
					<div id="guahaofp" style="width:96mm;height:93mm;display:none;">
						<table width="100%" cellpadding="0" border="0" cellspacing="0"
							style="table-layout: fixed;border-collapse: collapse;">
							<thead>
								<tr>
									<th width="5mm"></th>
									<th width="42mm"></th>
									<th width="42mm"></th>
									<th width="5mm"></th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td rowspan="3" style="font-size:10px;"></td>
									<td style="height:19mm;padding-left:10px;text-align: center;">
										<p style="font-size:10px;margin:0;padding:0;"></p>
										<p style="font-size:10px;margin:0;padding:0;"></p>
										<p style="font-size:10px;margin:0;padding:0;"></p></td>
									<td style="height:19mm;padding-left:10px;text-align: center;">
										<p style="font-size:10px;margin:0;padding:0;"></p>
										<p style="font-size:10px;margin:0;padding:0;"></p>
										<p style="font-size:10px;margin:0;padding:0;"></p></td>
									<td style="font-size:10px;" rowspan="3"></td>
								</tr>
								<tr>
									<td valign="TOP" style="height:73mm;">
										<ul style="margin:0;padding:0;">
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-binglihao" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-xingming" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-riqi" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-guahaofei" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-zhenliaofei" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-guahaolx" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-keshi" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;font-size:12px;"></span><span
												class="fp-haoma" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												class="fp-caozuoyuan" style="font-size:12px;"></span>
											</li>
										</ul></td>
									<td valign="TOP" style="height:73mm;text-align: left;">
										<ul style="margin:0;padding:0;">
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-binglihao" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-xingming" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-riqi" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-guahaofei" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-zhenliaofei" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-guahaolx" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;"></span><span
												class="fp-keshi" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												style="width:45px;display:inline-block;font-size:12px;"></span><span
												class="fp-haoma" style="font-size:12px;"></span>
											</li>
											<li
												style="margin-left:0px;padding:0;line-height:25px;text-align: left;list-style:none;"><span
												class="fp-caozuoyuan" style="font-size:12px;"></span>
											</li>
										</ul></td>
								</tr>
								<!-- <tr>
	            				<td style="height:30mm;padding-left:10px;">
	            					<p style="font-size:10px;margin:0;padding:0;">发票代码</p>
	            					<p style="font-size:10px;margin:0;padding:0;">133011621329</p>
	            					<p style="font-size:10px;margin:0;padding:0;">发票号码</p>
	            					<p style="font-size:10px;margin:0;padding:0;">03395064</p>
	            				</td>
	            				<td style="height:30mm;">
	            					<p style="font-size:10px;margin:0;padding:0;">发票代码</p>
	            					<p style="font-size:10px;margin:0;padding:0;">133011621329</p>
	            					<p style="font-size:10px;margin:0;padding:0;">发票号码</p>
	            					<p style="font-size:10px;margin:0;padding:0;">03395064</p>
	            					<p style="font-size:10px;margin:0;padding:0;">（手开无效）</p>
	            				</td>
	            			</tr> -->
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</form>
	</div>
	<div id="guahaoxp" style="display:none;margin-bottom:60px;">
		<table width="98%" style="margin:0 auto;">
			<tr style="height:30px;">
				<td class="zhensuomc" id="dy-zhensuomc" colspan="2"
					style="font-size:20px;font-weight: 900;text-align: center;line-heighr:40px;">苍狼诊所</td>
			</tr>
			<tr style="height:30px;">
				<td colspan="2"
					style="text-align: center;font-size:14px;line-heighr:40px;">挂号凭证</td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">号码：</td>
				<td class="dayin-haoma" id="dy-haoma"
					style="font-size:22px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td
					style="text-align:right;font-size:14px;line-heighr:40px;border-top:solid 1px #333;">姓名：</td>
				<td class="" id="dy-xingming"
					style="font-size:14px;line-heighr:40px;border-top:solid 1px #333;"></td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">科室：</td>
				<td class="" id="dy-keshi" style="font-size:14px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">医生姓名：</td>
				<td class="" id="dy-yishengxm"
					style="font-size:14px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">挂号类型：</td>
				<td class="" id="dy-guahaolx"
					style="font-size:14px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">挂号时间：</td>
				<td class="" id="dy-guahaosj"
					style="font-size:14px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">挂号费：</td>
				<td class="" id="dy-guahaofei"
					style="font-size:14px;line-heighr:40px;"></td>
			</tr>
			<tr style="height:30px;">
				<td
					style="text-align:right;font-size:14px;line-heighr:40px;border-top:solid 1px #333;">挂号员：</td>
				<td class="" id="dy-guahaoyuan"
					style="font-size:14px;line-heighr:40px;border-top:solid 1px #333;">
				</td>
			</tr>
			<tr style="height:30px;">
				<td style="text-align:right;font-size:14px;line-heighr:40px;">打印日期：</td>
				<td class="" id="dy-dayinrq"
					style="font-size:14px;line-heighr:40px;"></td>
			</tr>
		</table>
	</div>
</div>
<div class="modal fade" id="tanceng-shoufei" tabindex="-1" role="dialog"
	aria-labelledby="qyjy" aria-hidden="true" style="top:20%;"
	style="z-index: 15050">
	<div class="modal-dialog modal-sm m-postion">
		<div class="modal-content d-content" style="width:400px;">
			<div class="modal-header" style="padding-bottom:0;">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
				<h4 class="modal-title" id="tanceng-nr">请确认挂号信息是否正确</h4>
			</div>
			<div class="modal-body" style="padding-bottom:0;">
				<div style="border-bottom:solid 1px #ccc;">
					<div class="mgs">
						<span class="xiangmu">姓名：</span><span id="tcxingming"></span>
					</div>
					<div class="mgs">
						<span class="xiangmu">科室：</span><span id="tckeshi"></span>
					</div>
					<div class="mgs">
						<span class="xiangmu">医生姓名：</span><span id="tcyishengxm"></span>
					</div>
					<div class="mgs">
						<span class="xiangmu">挂号类型：</span><span id="tcguahaolx"></span>
					</div>
					<div class="mgs" style="margin-bottom:15px;">
						<span class="xiangmu">挂号日期：</span><span id="tcguahaorq"></span>
					</div>
				</div>
				<div class="clearfix" style="margin-top:15px;">
					<div class="mgs" style="float:left;padding:0;">
						<span class="xiangmu">应收金额：</span><span class="jine"
							id="tcyingshouje">￥1239元</span>
					</div>
					<div class="mgs" style="float:left;padding:0;">
						<span class="xiangmu">实收金额：</span><span class="jine bitbz"
							id="tcshishouje">￥1293元</span>
					</div>
				</div>
			</div>
			<div class="modal-footer text-center m-modal-footer">
				<button type="button" class="btn confirm" id="tanc-queding">确定</button>
				<button type="button" class="btn cancel new-btn"
					data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>

<div class="modal fade" id="tanceng-tuihaoqr" tabindex="-1"
	role="dialog" aria-labelledby="qyjy" aria-hidden="true"
	style="top:35%;" style="z-index: 15050">
	<div class="modal-dialog modal-sm m-postion">
		<div class="modal-content d-content">
			<div class="modal-header" style="padding-bottom:0;">
				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">&times;</span><span class="sr-only">Close</span>
				</button>
			</div>
			<div class="modal-body">
				<h4 class="modal-title" id="tanceng-qbnr">是否确认退号？</h4>
			</div>
			<div class="modal-footer text-center m-modal-footer">
				<button type="button" class="btn confirm">确定</button>
				<button type="button" class="btn cancel new-btn"
					data-dismiss="modal">取消</button>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript" src="../static/js/echarts.min.js"></script>
<script type="text/javascript" src="../static/js/common-fenye.js"></script>
<script type="text/javascript" src="../static/js/common-util.js"></script>
<script src="../static/js/pagination.min.js"></script>
<script type="text/javascript" src="../static/js/guahao.js"></script>
<script type="text/javascript" src="../static/js/LodopFuncs.js"></script>
<script type="text/javascript">
 // 打印药贴控件
 var LODOP; //声明为全局变量 
 	function myCreatePage() {	
 		LODOP=getLodop(); 		
 		//LODOP.PRINT_INIT("");	
 		LODOP.ADD_PRINT_TABLE("1mm","2mm","98%","98%","<body style='margin:0'>"+document.getElementById("guahaoxp").innerHTML+"</body>");
 	};
 	function myDesign() {		
 		myCreatePage();
 		LODOP.PRINT_DESIGN();		
 	};		
 	function myPreview() {		
 		myCreatePage();
 		LODOP.SET_PRINTER_INDEX ("xiaopiao");
 		LODOP. SET_PRINT_PAGESIZE (1,800,1700,"");  
 		LODOP.PRINT();
 		//LODOP.PREVIEW();  //预览	
 	};
 	//挂号发票打印
 	function myguahaofp() {	
 		LODOP=getLodop(); 		
 		//LODOP.PRINT_INIT("");	
 		LODOP.ADD_PRINT_TABLE("0mm","0mm","100%","100%","<body style='margin:0'>"+document.getElementById("guahaofp").innerHTML+"</body>");
 	};
 	function myguahao() {		
 		myguahaofp();
 		LODOP.PRINT_DESIGN();		
 	};		
 	function myguahaofp1() {		
 		myguahaofp();
 		LODOP.SET_PRINTER_INDEX ("fp-guahao");
 		LODOP.SET_PRINT_PAGESIZE (1,960,930,"");  
 		LODOP.PRINT();	//直接打印
 		//LODOP.PREVIEW();  //预览	
 	};
 	//挂号发票打印结束
 	$(document).on('click','#xiazai',function(){
 		$('#tanceng-lodop').modal('hide');
 	})
 //打印控件结束
  	$(function () {
  		closeDiv();
  		guahaoxx.init();
  		var height = $('.main-scroll').height();
  		$('.left-box').css("height",(height));
  	});
  	</script>
</html>
